package com.scale;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 启动项管理
 */
@MapperScan("com.scale.service.*.mapper")//mapper扫描
@ComponentScan(basePackages = {"com.scale", "com.example.common"})//扫描common模块
@EnableAsync // 启用异步处理
@SpringBootApplication
public class App
{
    public static void main( String[] args )
    {
        SpringApplication.run(App.class, args);
    }
}
